/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sgmi.enthy;

import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author HugoCesar
 */
@Entity
@Table (name="grupos")
public class Grupos implements Serializable{

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column (name = "cod_grupos")
private int codGrupos;
private String descricao;

    public int getCodGrupos() {
        return codGrupos;
    }

    public void setCodGrupos(int codGrupos) {
        this.codGrupos = codGrupos;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + this.codGrupos;
        hash = 53 * hash + Objects.hashCode(this.descricao);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Grupos other = (Grupos) obj;
        if (this.codGrupos != other.codGrupos) {
            return false;
        }
        if (!Objects.equals(this.descricao, other.descricao)) {
            return false;
        }
        return true;
    }

    
}
